package com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.mapper.SylDeptCopy1Mapper ;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.domain.SylDeptCopy1 ;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.ISylDeptCopy1Service ;

/**
 * 科室Service业务层处理
 *
 * @author ruoyi
 * @date 2021-07-15
 */
@Service
public class SylDeptCopy1ServiceImpl implements ISylDeptCopy1Service
{
    @Autowired
    private SylDeptCopy1Mapper sylDeptCopy1Mapper;

    /**
     * 查询科室
     *
     * @param deptId 科室ID
     * @return 科室
     */
    @Override
    public SylDeptCopy1 selectSylDeptCopy1ById(Long deptId)
    {
        return sylDeptCopy1Mapper.selectSylDeptCopy1ById(deptId);
    }

    /**
     * 查询科室列表
     *
     * @param sylDeptCopy1 科室
     * @return 科室
     */
    @Override
    public List<SylDeptCopy1> selectSylDeptCopy1List(SylDeptCopy1 sylDeptCopy1)
    {
        return sylDeptCopy1Mapper.selectSylDeptCopy1List(sylDeptCopy1);
    }

    /**
     * 新增科室
     *
     * @param sylDeptCopy1 科室
     * @return 结果
     */
    @Override
    public int insertSylDeptCopy1(SylDeptCopy1 sylDeptCopy1)
    {
        return sylDeptCopy1Mapper.insertSylDeptCopy1(sylDeptCopy1);
    }

    /**
     * 修改科室
     *
     * @param sylDeptCopy1 科室
     * @return 结果
     */
    @Override
    public int updateSylDeptCopy1(SylDeptCopy1 sylDeptCopy1)
    {
        return sylDeptCopy1Mapper.updateSylDeptCopy1(sylDeptCopy1);
    }

    /**
     * 批量删除科室
     *
     * @param deptIds 需要删除的科室ID
     * @return 结果
     */
    @Override
    public int deleteSylDeptCopy1ByIds(Long[] deptIds)
    {
        return sylDeptCopy1Mapper.deleteSylDeptCopy1ByIds(deptIds);
    }

    /**
     * 删除科室信息
     *
     * @param deptId 科室ID
     * @return 结果
     */
    @Override
    public int deleteSylDeptCopy1ById(Long deptId)
    {
        return sylDeptCopy1Mapper.deleteSylDeptCopy1ById(deptId);
    }
}
